<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<!--<li>-->
								<!--终端编号：<input type="text" name="tid"/>-->
							<!--</li>-->

							<li>
								所属分组：<input type="text" name="aname"/>
							</li>

							<li>
								终端名称：<input type="text" name="tname"/>
							</li>

							<li>
								所属用户：<input type="text" name="uname"/>
							</li>
							<li>
								维护次数：<input type="text" name="mnum"/>
							</li>
							<!--<li>-->
								<!--维护人员：<input type="text" name="mstaff"/>-->
							<!--</li>-->

							<!--<li>
								维护时间：<input type="text" name="createtime"/>
							</li>-->

							<!--<li>-->
								<!--备注：<input type="text" name="remark"/>-->
							<!--</li>-->

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <!--<div class="btn-group-sm hidden-xs" id="toolbar" role="group">-->
				<!--<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="broad:maincount:add">-->
					<!--<i class="fa fa-plus"></i> 录入维护信息-->
				<!--</a>-->
				<!--&lt;!&ndash;<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="broad:maincount:edit">&ndash;&gt;-->
					<!--&lt;!&ndash;<i class="fa fa-edit"></i> 修改&ndash;&gt;-->
				<!--&lt;!&ndash;</a>&ndash;&gt;-->
				<!--&lt;!&ndash;<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="broad:maincount:remove">&ndash;&gt;-->
					<!--&lt;!&ndash;<i class="fa fa-remove"></i> 删除&ndash;&gt;-->
				<!--&lt;!&ndash;</a>&ndash;&gt;-->
				<!--&lt;!&ndash;<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="broad:maincount:export">&ndash;&gt;-->
						<!--&lt;!&ndash;<i class="fa fa-download"></i> 导出&ndash;&gt;-->
				 <!--&lt;!&ndash;</a>&ndash;&gt;-->
			<!--</div>-->
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('broad:maincount:edit')}]];
        var removeFlag = [[${@permission.hasPermi('broad:maincount:remove')}]];
        var prefix = ctx + "broad/maincount";

        $(function() {
            var options = {
                url: prefix + "/list",
				detailUrl: prefix + "/detail/{id}",
				exportUrl: prefix + "/export",
                modalName: "终端维护记录",
				search: false,
		        showExport: true,
                columns: [
				{
					field : 'tmid', 
					title : '终端维护记录-维护ID',
					visible: false
				},
				{
					field : 'tid', 
					title : '终端编号',
					sortable: true
				},
				{
						field : 'tname',
						title : '终端名称',
						sortable: true
					},
					{
						field : 'aname',
						title : '所属分组',
						sortable: true
					},
					{
						field : 'uname',
						title : '上级分组',
						sortable: true
					},{
						field : 'mnum',
						title : '维护次数',
						sortable: true
					},
				{
					field : 'createtime',
					title : '维护时间',
					sortable: true
				},
		        {
		            title: '操作',
		            align: 'center',
					formatter: function(value, row, index) {
						var actions = [];
						actions.push('<a class="btn btn-success btn-xs ' + '"onclick="$.operate.detail(\'' + row.tid + '\')"><i class="fa fa-edit"></i>查看详情</a> ');
						return actions.join('');
					}
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>